package net.xdclass.xdclassmq.domain;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Data
public class ProductOrder implements Serializable {

    /**
     * 订单id
     */
    private long orderId;

    /**
     * 操作类型
     */
    private String type;

    public ProductOrder(long orderId, String type) {
        this.orderId = orderId;
        this.type = type;
    }

    public static List<ProductOrder> getOrderList(){
        return Arrays.asList(
                new ProductOrder(111L,"创建订单"),
                new ProductOrder(111L,"支付订单"),
                new ProductOrder(222L,"创建订单"),
                new ProductOrder(222L,"支付订单"),
                new ProductOrder(333L,"创建订单"),
                new ProductOrder(111L,"完成订单"),
                new ProductOrder(222L,"完成订单"),
                new ProductOrder(333L,"支付订单"),
                new ProductOrder(333L,"完成订单"));

    }


}
